<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no" />
    <title>仓库选择</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <style>
        body{
            background: #fff;
        }
        .aui-arrow-right:after{
            content: '';
        }
        .active{
            color: #000 !important;
        }
        .active .aui-arrow-right:after{
            content:"\e657";
            color: #ff3333;
            font-size: 18px;
        }
    </style>
</head>
<body>
<div class=" contain">
    <ul class="aui-list-view">
        <li class="aui-list-view-cell active" tapmode onclick="check(this)">
            <div class="aui-arrow-right">广东仓</div>
        </li>
        <li class="aui-list-view-cell" tapmode onclick="check(this)">
            <div class="aui-arrow-right">云南</div>
        </li>
        <li class="aui-list-view-cell" tapmode onclick="check(this)">
            <div class="aui-arrow-right">西藏</div>
        </li>
        <li class="aui-list-view-cell" tapmode onclick="check(this)">
            <div class="aui-arrow-right">贵州</div>
        </li>
    </ul>
</div>
</body>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript" src="../script/echo.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/myInfo.js"></script>
<script type="text/javascript" src="../script/jquery-1.11.3.js"></script>
<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
        api.setRefreshHeaderInfo({
            visible : true,
            loadingImg : 'widget://image/ptr_pull.png',
            bgColor : '#efeff4',
            textColor : '#959595',
            textDown : '下拉刷新',
            textUp : '松开刷新',
            showTime : true
        }, function(ret, err) {
            page = 1;
            getData(catid);
            api.refreshHeaderLoadDone();
        });

    }
    function check(obj) {
        $(obj).parent().find("li").removeClass("active");
        $(obj).addClass("active");
        api.sendEvent({
            name:"checkWareHouse",
            extra:{
                name:$(obj).text()
            }

        })
        closeWin();
    }
</script>
</html>